package org.csu.constants;

public class SystemConstants {
    // 图书状态常量
    public static final String BOOK_STATUS_AVAILABLE = "0";  // 可借阅
    public static final String BOOK_STATUS_BORROWED = "1";  // 借阅中
    public static final String BOOK_STATUS_RETURNING = "2"; // 归还中
    public static final String BOOK_STATUS_UNSHELVED = "3"; // 已下架
    public static final String BOOK_STATUS_DELETED = "4";   // 已删除

    // 图书封面存储路径
    public static final String BOOK_COVER_UPLOAD_PATH = "/upload/book/cover/";

    // 封面文件限制
    public static final long BOOK_COVER_MAX_SIZE = 2 * 1024 * 1024; // 2MB
    public static final String[] BOOK_COVER_ALLOWED_SUFFIX = {"jpg", "png"}; // 允许格式
}